package ideamaps.action;

import ideamaps.domain.User;
import ideamaps.manager.UserManager;
import com.taillive.core.dao.support.Page;
import com.taillive.core.web.StrutsAction;

public class MyHomeAction extends StrutsAction{
	
	private User user;
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	private UserManager userManager;
	public void setUserManager(UserManager userManager) {
		this.userManager = userManager;
	}
	
	


	public String myHome(){
		
		String username = (String)getSession().getAttribute("sessionUsername");
	    user = userManager.getByUsername(username);
		
		
		return SUCCESS;
	}









}
